package com.fjzn.detect.repository.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author hellowrold
 * @since 2021-04-26
 */
public class SysMenu extends Model<SysMenu> {

private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
        @TableId(value="menu_id", type= IdType.AUTO)
private Integer menuId;
    /**
     * 菜单名称
     */
private String menuName;
    /**
     * 父菜单ID
     */
private Integer parentId;
    /**
     * 显示顺序
     */
private Integer orderNum;
    /**
     * 菜单类型（M目录 C菜单 F按钮）
     */
private String menuType;
    /**
     * 菜单状态（0显示 1隐藏）
     */
private Integer visible;
    /**
     * 菜单状态（0正常 1停用）
     */
private Integer status;
    /**
     * 权限标识
     */
private String perms;
    /**
     * 创建者
     */
private String createBy;
    /**
     * 创建时间
     */
private LocalDateTime createAt;
    /**
     * 更新者
     */
private String updateBy;
    /**
     * 更新时间
     */
private LocalDateTime updateAt;
    /**
     * 备注
     */
private String remark;


public Integer getMenuId() {
        return menuId;
        }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
        }

public String getMenuName() {
        return menuName;
        }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
        }

public Integer getParentId() {
        return parentId;
        }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
        }

public Integer getOrderNum() {
        return orderNum;
        }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
        }

public String getMenuType() {
        return menuType;
        }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
        }

public Integer getVisible() {
        return visible;
        }

    public void setVisible(Integer visible) {
        this.visible = visible;
        }

public Integer getStatus() {
        return status;
        }

    public void setStatus(Integer status) {
        this.status = status;
        }

public String getPerms() {
        return perms;
        }

    public void setPerms(String perms) {
        this.perms = perms;
        }

public String getCreateBy() {
        return createBy;
        }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
        }

public LocalDateTime getCreateAt() {
        return createAt;
        }

    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
        }

public String getUpdateBy() {
        return updateBy;
        }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
        }

public LocalDateTime getUpdateAt() {
        return updateAt;
        }

    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
        }

public String getRemark() {
        return remark;
        }

    public void setRemark(String remark) {
        this.remark = remark;
        }

@Override
protected Serializable pkVal() {
            return this.menuId;
        }

public static interface Field{
        String menuId = "menu_id";
        String menuName = "menu_name";
        String parentId = "parent_id";
        String orderNum = "order_num";
        String menuType = "menu_type";
        String visible = "visible";
        String status = "status";
        String perms = "perms";
        String createBy = "create_by";
        String createAt = "create_at";
        String updateBy = "update_by";
        String updateAt = "update_at";
        String remark = "remark";
}
}
